﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{
    /// <summary>
    /// 成绩表
    /// </summary>
    public class Result
    {
        /// <summary>
        /// 成绩编号
        /// </summary>
        [Key]
        public Guid ScoreID { get; set; }

        /// <summary>
        /// 所属考试编号
        /// </summary>
        public Guid ExamID { get; set; }

        /// <summary>
        /// 学生编号
        /// </summary>

        public Guid StudentID { get; set; }

        /// <summary>
        /// 分数
        /// </summary>
        public decimal Score { get; set; }
        /// <summary>
        /// 导航属性-所属考试
        /// </summary>
        public virtual Exam Exam { get; set; }
        /// <summary>
        /// 导航属性-所属学生
        /// </summary>
        public virtual Student Student { get; set; }
    }
}
